package com.linewell.mongodemo.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;


@Document(collection = "licenseLevel")
public class LicenseLevel implements Serializable {

	private static final long serialVersionUID = 1141242L;

	@Id
	private String id;
	
	/***
	 * 可信等级名称
	 */
	@Field("name")
	private String name;
	
	/****
	 * 证照来源（1：采集，2：填报，3：导入，4：推送，5：用户）
	 */
	@Field("data_source")
	private Integer dataSource;

	
	/***
	 * 时效性-起始
	 */
	@Field("active_time_start")
	private Integer activeTimeStart;
	
	/***
	 * 时效性-起始
	 */
	@Field("active_time_end")
	private Integer activeTimeEnd;
	
	/****
	 * 签章归属（1:原单位，2:授权单位）
	 */
	@Field("sign_ascription")
	private Integer signAscription;
	
	/***
	 * 水印信息
	 */
	@Field("water_mark")
	private String waterMark;
	
	/***
	 * 维护时间
	 */
	@Field("update_time")
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getDataSource() {
		return dataSource;
	}

	public void setDataSource(Integer dataSource) {
		this.dataSource = dataSource;
	}

	public Integer getActiveTimeStart() {
		return activeTimeStart;
	}

	public void setActiveTimeStart(Integer activeTimeStart) {
		this.activeTimeStart = activeTimeStart;
	}
	
	public Integer getActiveTimeEnd() {
		return activeTimeEnd;
	}

	public void setActiveTimeEnd(Integer activeTimeEnd) {
		this.activeTimeEnd = activeTimeEnd;
	}
	
	public void setActiveTimeEnd(String activeTimeEnd) {
			this.activeTimeEnd = Integer.valueOf(activeTimeEnd);
	}

	public Integer getSignAscription() {
		return signAscription;
	}

	public void setSignAscription(Integer signAscription) {
		this.signAscription = signAscription;
	}

	public String getWaterMark() {
		return waterMark;
	}

	public void setWaterMark(String waterMark) {
		this.waterMark = waterMark;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
